package com.emergency.embackend.service;

import com.emergency.embackend.common.PageParams;
import com.emergency.embackend.entity.HelpComment;
import com.emergency.embackend.entity.HelpData;
import com.emergency.embackend.entity.HelpHot;
import com.emergency.embackend.vo.HelpDetailVo;
import com.github.pagehelper.PageInfo;

public interface HelpDataService {
    //添加帮助消息
    void add(HelpData helpUser, Long userId);
    //删除帮助信息
    void delete(String helpId);

    void update(HelpData helpData);

    PageInfo pageByUser(PageParams pageParams,Long userId);

    PageInfo pageAll(PageParams pageParams);

    HelpDetailVo getOne(Long helpId);

    void addComment(HelpComment helpComment);

    void updateHot(Long helpId);

    Integer like(Long helpId, char c);

    PageInfo hotByUptime(PageParams pageParams);

    int changeHot(Long helpId);


}
